package com.tee.live.user.provider.rpc;

import com.tee.live.user.interfaces.IUserTagRpc;
import com.tee.live.user.constans.UserTagsEnum;
import com.tee.live.user.provider.service.IUserTagService;
import jakarta.annotation.Resource;

public class UserTagRpcImpl implements IUserTagRpc {

    @Resource
    private IUserTagService userTagService;
    /**
     * 设置标签
     *
     * @param userId
     * @param userTagEnum
     * @return
     */
    @Override
    public boolean setTag(final Long userId, final UserTagsEnum userTagEnum) {
        return userTagService.setTag(userId, userTagEnum);
    }

    /**
     * 取消标签
     *
     * @param userId
     * @param userTagEnum
     * @return
     */
    @Override
    public boolean cancelTag(final Long userId, final UserTagsEnum userTagEnum) {
        return userTagService.cancelTag(userId, userTagEnum);
    }

    /**
     * 判断用户是否有某个标签
     *
     * @param userId
     * @param userTagEnum
     * @return
     */
    @Override
    public boolean containTag(final Long userId, final UserTagsEnum userTagEnum) {
        return userTagService.containTag(userId, userTagEnum);
    }

}
